#include <iostream>
#include <unistd.h>
#include <string>
// #include "include/gen.hpp"
#include "include/calc.hpp"
using namespace std;
int main(){
    string shizi;
    cin >> shizi;
    // cout<< shizi<<endl;
    fenshu re = calc(shizi);
    cout<<re.toDieString()<<endl;
    return 0;
}